<template>
  <header class="header">
    <h1>todos</h1>
    <input
      class="new-todo"
      placeholder="What needs to be done?"
      autofocus
      @keydown.enter="huiche"
      v-model="tack"
      
    />
  </header>
</template>

<script>
export default {
  data() {
    return {
      tack: "",
    };
  },
  methods: {
    huiche() {
      this.$emit("fachu", this.tack);
      this.tack= "";
    },
  },
};
</script>

<style>
</style>